# from threading import Thread
#
# x = 1000
#
# def task():
#     global x
#     x = 0
#
#
# if __name__ == '__main__':
#     t = Thread(target=task)
#     t.start()
#     # t.join()
#     print(f'主线程: {x}')




# from threading import Thread
# import time
# x = 1000
#
# def task():
#     time.sleep(3)
#     print('子线程....')
#
#
# def main():
#     print('111')
#     print('222')
#     print('333')
#
# #
# # task()
# # main()
#
# if __name__ == '__main__':
#     t = Thread(target=task)
#     t.start()
#     # t.join()
#     main()
